public class ancestor{
  private    int priVar = 1;
             int defVar = 2;
  protected  int proVar = 3;
  public     int pubVar = 4;
  private  void priShow(){
     System.out.println("This is a private method");
  }
  void defShow(){
     System.out.println("This is a default method");
  }
  protected void proShow(){
     System.out.println("This is a protected method");
  }
  public void pubShow(){
     System.out.println("This is a public method");
  }      
}